class TravelBean {
  int type = 0; //1top, 2right 3left 4bottm
  String bgImg = ""; //下面的图片
  // String topimg = ""; //上面的图片
//  String middleImg = ""; //中间的图片

  String topNumimg = ""; //上面的数字背景图片

  String bottomNumimg = ""; //下面的数字背景图片
  int topNum = 1; //上面的号码
  int bottomNum = 0; //下面的号码

  bool rightImg = true; //true风景图片在右边
  String sceneryImg = ''; //风景图

  TravelBean();

  TravelBean.fromJson(Map<String, dynamic> json) {
    type = json['type'];
    bgImg = json['bgImg'];
    bottomNumimg = json['bottomNumimg'];
    topNumimg = json['topNumimg'];
    topNum = json['topNum'];
    bottomNum = json['bottomNum'];
    rightImg = json['rightImg'];
    sceneryImg = json['sceneryImg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['bgImg'] = this.bgImg;
    data['topNumimg'] = this.topNumimg;
    data['type'] = this.type;
    data['bottomNumimg'] = this.bottomNumimg;
    data['topNum'] = this.topNum;
    data['bottomNum'] = this.bottomNum;
    data['rightImg'] = this.rightImg;
    data['sceneryImg'] = this.sceneryImg;
    return data;
  }
}
